package com.adjaisd.scarecrow.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * <p>
 *
 * </p>
 *
 * @author adjaisd
 * @since 2022-03-28
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
@TableName("sc_alarm")
@ApiModel(value = "Alarm对象", description = "")
public class Alarm implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "告警ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "告警名称")
    private String name;

    @ApiModelProperty(value = "符号")
    private String operator;

    @ApiModelProperty(value = "边界值")
    private Double threshold;

    @ApiModelProperty(value = "告警级别")
    private Integer level;

    @ApiModelProperty(value = "沉默周期")
    private Double cycle;

    @ApiModelProperty(value = "webhook")
    private String webhook;

    @ApiModelProperty(value = "创建时间")
    private Long createTime;

    @ApiModelProperty(value = "指标ID")
    private Long quotaId;

}
